import request from '@/utils/request'
import { ObjectType, ResponseDataPromise } from 'typings/interfaces'
import * as proxy from '@/constants/proxy'
import { Pagination } from '@/components/Records/types'
export interface Params extends ObjectType {
  goodsType?: string
  goodsName?: string
}

// 人员信息概览
  export const personnelRequest = (
    pagination: Omit<Pagination, 'total'>,
    data: Params
  ): ResponseDataPromise<ObjectType> =>
    request({
      url: proxy.CHECC_API_BASE_DATA + '/bd-tunnel-in/overview',
      method: 'post',
      data,
      params: Object.assign(pagination, data),
    })
